/* Import Taro UI styles */
@import "~taro-ui/dist/style/index.scss";

/* Global styles */
page {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #fef7f0 0%, #fff4e6 25%, #fef3c7 50%, #fef7f0 75%, #fff8f1 100%) !important;
  min-height: 100vh;
  font-size: 32rpx; /* iPhone 13/14 Pro 适配字体 */
  
  // iPhone 安全区域适配
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

view, text, image, button, input {
  box-sizing: border-box;
}

/* Override Taro UI default styles for better appearance */
.at-button--primary {
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  border: none;
  font-size: 36rpx; /* 增大按钮字体 */
  font-weight: 600;
  border-radius: 20rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 122, 255, 0.3);
  transition: all 0.2s ease;
}

.at-button--primary:active {
  background: linear-gradient(135deg, #0056CC 0%, #4A4A9F 100%);
  transform: scale(0.96);
  box-shadow: 0 2rpx 8rpx rgba(0, 122, 255, 0.4);
}

.at-button--secondary {
  background: #F2F2F7;
  border: 1rpx solid rgba(0, 0, 0, 0.06);
  color: #007AFF;
  font-size: 36rpx;
  font-weight: 600;
  border-radius: 20rpx;
  transition: all 0.2s ease;
}

.at-button--secondary:active {
  background: #E5E5EA;
  transform: scale(0.96);
}

.at-badge .at-badge__num {
  background: #ef4444;
  border: 2px solid #ffffff;
  font-weight: 600;
}

.at-float-layout .at-float-layout__overlay {
  background: rgba(0, 0, 0, 0.5);
}

.at-input .at-input__container {
  padding: 0;
}

.at-input .at-input__title {
  color: #1f2937;
  font-weight: 600;
}

.at-input .at-input__input {
  color: #1f2937;
}

/* Custom scrollbar styles for H5 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(107, 114, 128, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 0.5);
}
